#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

int* foo(void)
{
	int arr[] = { 1, 2, 3, 4, 5 };
	return &arr[2];
}

int main(void) {
	int* p = foo();
	printf("%d\n", *p);
	printf("%d\n", *p);
	return 0;
}